Package-level declarations
Functions
Blocks until the session reaches a terminal state (Finished, Error, or Idle). Returns 0 for Finished, 1 for Error, 2 for Idle (stopped externally).
Load audio data into the playback session.
Start playback. State transitions are managed by the JVM caller; use macos_playback_session_await_completion to block until a terminal state.
Dispose StableRef when you're fully done with the session.
Pause an active recording. Capture halts but the AudioQueue + buffers stay allocated so macos_recording_session_resume is cheap and the previously captured chunks remain in the session's hot flow.
Dispose StableRef when you're fully done with the session (after stop/reset).
Resume a previously paused recording.
Start recording and stream updates to the provided callbacks.